package com.teamone.etl.apimanager.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 接口错误码表(ApiErrorCode)表实体类
 *
 * @author makejava
 * @since 2021-01-20 18:32:04
 */
@SuppressWarnings("serial")
public class ApiErrorCode extends Model<ApiErrorCode> {

    /**
     * 序号
     */
    private Integer id;
    /**错误码级别，1系统级错误，2服务级错误
     *
     */
    private Integer level;
    /**错误码
     *
     */
    private Integer code;
    /**说明
     *
     */
    private String explain;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}